package com.song.boot.applicationListener;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Description: ApplicationListenerTest：类描述
 * @author: songzhangyong
 * @Date: 2020/6/1 10:07
 */
@Component
public class ApplicationStartedEventTest implements ApplicationListener<ApplicationStartedEvent> {


	@Override
	public void onApplicationEvent(ApplicationStartedEvent event) {
		System.out.println("Listener============ApplicationStartedEvent spring boot启动开始时执行的事件");
	}
}
